package com.wang.android.library.di.modules;

import android.app.Activity;
import android.app.Service;

import com.wang.android.library.di.scopes.ActivityScope;

import dagger.Module;
import dagger.Provides;

/**
 * Activity注入提供者Module
 *
 * @author wujiajun
 */
@Module
public class ServiceModule
{

    private final Service mService;

    public ServiceModule(Service service) {
        this.mService = service;
    }


    @ActivityScope
    @Provides
    public Service provideService() {
        return mService;
    }


}
